package com.bytech.article.biz.service.articleTag;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bytech.common.biz.entity.articleTag.ArticleTag;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bytech.common.biz.entity.articleTag.ArticleTagDto;
import com.bytech.common.biz.entity.articleTag.ArticleTagQuery;
import com.bytech.common.biz.entity.base.BaseResult;

/**
 * @Author Zhao
 * @Create 2021-08-13
 */
public interface ArticleTagService extends IService<ArticleTag> {

    Page<ArticleTag> pageTagByQuery(ArticleTagQuery<ArticleTag> tagQuery);

    BaseResult<ArticleTag> saveTag(ArticleTagDto articleTagDto);

    BaseResult<List<ArticleTagDto>> getAllUsableTagWithArticleCount();

}
